package com.dhcc.bpm.modules.scf.entity.SelectEntity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 利废入库关联支付回单实体累
 */
@Data
public class InvoiceInfoPaymentInfoRef implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 编号
     */
    @TableId(value = "ROW_ID", type = IdType.INPUT)
    private String rowId;

    @TableField("INVOICE_NUM")
    private String invoiceNum;

    @TableField("INVOICE_ROW_ID")
    private String InvoiceRowId;
    /**
     * 回单交易流水号-一个回单可能对应多个入库
     */
    @TableField("PAYMENT_NUM")
    private String paymentNum;
    /**
     *  支付回单RowId编号
     */
    @TableField("PAYMENT_ROW_ID")
    private String paymentRowId;
    /**
     * 使用金额
     */
    @TableField("USE_AMOUNT")
    private BigDecimal useAmount;
    /**
     * 剩余金额
     */
/*    @TableField(value = "REMAIN_AMOUNT", exist = false)
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal remainAmount;*/

    @TableField("ORG_CODE")
    @ExcelProperty("所属公司编码")
    private String orgCode;
}

